wander from the straight and narrow

Translations
s'écarter du droit chemin
Definitions
To stray from a morally correct or socially acceptable path; to engage in behavior that is considered improper or unethical.